package com.sxf.service;

import java.util.List;

import com.sxf.domain.User;
import com.sxf.domain.UserMeta;
import com.sxf.domain.UserVO;
import com.sxf.mybatis.page.Pagination;
import com.sxf.querybean.UserQuery;

public interface UserService {
	/**
	 * @param UserQuery
	 * @param queryMode
	 *            查询模式(具体看Constan常量)
	 * @return
	 */
	public Pagination<UserVO> queryPage(UserQuery userQuery);

	public List<UserVO> queryList(UserQuery userQuery);

	public long queryNumber(UserQuery userQuery);

	public int insert(User User);

	public int update(User User);

	public int delete(User user);

	/**
	 * 返回主键或影响的行数
	 * 
	 * @param userMeta
	 * @return
	 */
	public long insertUserMeta(UserMeta userMeta);

	public int updateUserMeta(UserMeta userMeta);

	public int deleteUserMeta(UserMeta userMeta);

}
